package com.gz.springboot.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Stack;

//@RestController==Controller+ResponseBody
@RestController
public class HiController {

    //这里类上有@RestController，即包含了ResponseBody，所以这里返回的是数据不是页面
    @RequestMapping("/hi")
    public String sayHi() {

        return "Hi " ;
    }
}
